package com.zhengxyou.jetpackdemo.work;

import android.content.Context;
import android.util.Log;

import androidx.annotation.NonNull;
import androidx.work.Worker;
import androidx.work.WorkerParameters;

public class CWorker extends Worker {

    public CWorker(@NonNull Context context, @NonNull WorkerParameters workerParams) {
        super(context, workerParams);
    }

    @NonNull
    @Override
    public Result doWork() {
        myCompress();
        return Result.success();
    }

    private void myCompress() {
        Log.e("TAG", "CompressWorker:——》myCompress");
        Log.e("TAG", "CompressWorker:——》"+android.os.Process.myPid()+","+android.os.Process.myTid());
    }
}
